module.exports = app => {
  const mongoose = require("mongoose")
  mongoose.connect('mongodb://139.155.34.163:27017/node-vue-wangzhe', {
/*  mongoose.connect('mongodb://127.0.0.1:27017/node-vue-moba', {*/
    useNewUrlParser: true
  })
  const conn = mongoose.connection
  conn.on('connected', function () {
    console.log('数据库连接成功!')
  })
  require('require-all')(__dirname + '/../models')
}



